﻿<UserControl x:Class="HomeWP.DIMMER"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="99" d:DesignWidth="450" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" ManipulationCompleted="UserControl_ManipulationCompleted">

    <Grid x:Name="LayoutRoot" Margin="16,0,0,0" Height="125" Loaded="LayoutRoot_Loaded" >
        
        <!--
        <TextBlock Height="45" HorizontalAlignment="Stretch" Name="_dispName" Text="??" VerticalAlignment="Top" FontSize="32" TextWrapping="Wrap" Grid.ColumnSpan="3" />
        <TextBlock Height="30" HorizontalAlignment="Center" Margin="109,38,86,0" Name="tValue" Text="??" VerticalAlignment="Top" Foreground="#FFFCCC24" Width="55" TextAlignment="Center" Grid.Column="1" />
        -->
        <StackPanel>
            <TextBlock Height="45" HorizontalAlignment="Stretch" Name="_dispName" Text="??" VerticalAlignment="Top" Style="{StaticResource PhoneTextGroupHeaderStyle}" TextWrapping="Wrap" Grid.ColumnSpan="3" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="90" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="90" />
                </Grid.ColumnDefinitions>

                <Button Grid.Column="0" Content="Aus" Height="71" VerticalAlignment="Top"   Name="bt_off" Click="bt_off_Click"  />
                <StackPanel  Grid.Column="1">
                    <TextBlock  HorizontalAlignment="Center" Name="tValue" Text="??" VerticalAlignment="Top" Foreground="{StaticResource PhoneAccentBrush}" Width="55" TextAlignment="Center" Grid.Column="1" />
                    <Slider HorizontalAlignment="Stretch" x:Name="slider1" Maximum="100" LargeChange="10" SmallChange="1" ValueChanged="slider1_ValueChanged" Margin="0,-15,0,0"  />

                </StackPanel>
                <Button Grid.Column="2" Content="An" Height="71" HorizontalAlignment="Right"  Name="bt_On" VerticalAlignment="Top" Click="bt_On_Click" />

            </Grid>
        </StackPanel>
        <toolkit:ContextMenuService.ContextMenu>
            <toolkit:ContextMenu IsZoomEnabled="false" Margin="0,-20,0,0">
                <toolkit:MenuItem Header="Als Favorit hinzufügen" x:Name="mi_Favorit" Click="mi_Favorit_Click" />
                <toolkit:MenuItem Header="Favorit entfernen" x:Name="mi_DelFavorit" Click="mi_DelFavorit_Click" />
                <!--    <toolkit:MenuItem Header="Auf Startseite anheften" x:Name="mi_Pin" Click="MenuItem2_Click" />-->
            </toolkit:ContextMenu>
        </toolkit:ContextMenuService.ContextMenu>
    </Grid>
</UserControl>
